<?php

namespace App\Controller\Init;


use App\Controller\BaseController;
use App\Request\Init\CheckVersionRequest;
use App\Services\Init\CheckService;
use Hyperf\Di\Annotation\Inject;

class CheckController extends BaseController
{

    #[Inject]
    public CheckService $checkService;


    /**
     * Note - 客户端检查最新版本
     * DateTime 2024/8/13 11:18
     * User Admin
     */
    public function checkVersion(CheckVersionRequest $request)
    {
        $params = $this->request->post();
        $request->execute($params);
        $data = $this->checkService->checkVersion($params);
        return $this->return($data);
    }

}